package com.aloha.springframework.beans.factory.config;

import com.aloha.springframework.beans.BeansException;
import com.aloha.springframework.beans.factory.BeanFactory;

/**
 * @author DaiZhiHeng
 * @description 提供自动装配的能力
 * @date 2023/7/1 20:50
 */
public interface AutowireCapableBeanFactory extends BeanFactory {

    /**
     * 执行 BeanPostProcessor 的before方法
     */
    Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) throws BeansException;

    /**
     * 执行 BeanPostProcessor 的after方法
     */
    Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) throws BeansException;
}
